import request from '@/utils/request.js'
const PATH = '/admin/incentive/'

// 添加激励语句
export const addIncentive = (data) => request.post(PATH + 'add', data)

// 分页查询激励语句
export const queryIncentive = (params) => request.get(PATH + 'page', { params })

// 修改状态
export const updateStatus = ({ id, status }) =>
  request.put(PATH + `${id}/${status}`)

// 删除激励语句
export const deleteIncentive = (id) =>
  request.delete(PATH + 'batchDelete', {
    params: {
      ids: id.join(',')
    }
  })
